package com.neuedu.shixun.hospital2.service.Impl;

import com.neuedu.shixun.hospital2.entity.Ks;
import com.neuedu.shixun.hospital2.repository.KsRepository;
import com.neuedu.shixun.hospital2.service.KsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KsSericeImpl implements KsService{
    @Autowired
    private KsRepository ksRepository;
    @Override
    public List<Ks> getKs() {
        return ksRepository.findAll();
    }

}
